Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.rest.elevenlabs 3.5.1 #121

Merged
merged 2 commits into from
Mar 8, 2025
Merged

com.rest.elevenlabs 3.5.1 #121

merged 2 commits into from
Mar 8, 2025

Conversation

StephenHodgson
Copy link
Member

  • Fixed generated clip playback for non-streaming clips
  • Updated usages of Task.Delay with WebGL friendly Awaiters.DelayAsync
  • Updated TextToSpeechDemo
  • Updated Deps
  • Updated Unit Tests

- Fixed generated clip playback for non-streaming clips
- Updated usages of Task.Delay with WebGL friendly Awaiters.DelayAsync
- Updated TextToSpeechDemo
- Updated Deps
- Updated Unit Tests
@StephenHodgson StephenHodgson requested a review from Copilot March 8, 2025 23:16

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This PR improves the functionality of the ElevenLabs package by fixing generated clip playback for non-streaming clips, replacing Task.Delay with a WebGL friendly delay, updating the TextToSpeechDemo, and adjusting unit tests accordingly.

  • Fixed generated audio clip playback in GeneratedClip.cs by reordering logic and properties.
  • Replaced Task.Delay with Awaiters.DelayAsync for better cross-platform support.
  • Updated TextToSpeechDemo and unit tests to verify clip length and playback.

Reviewed Changes

File Description
ElevenLabs/Packages/com.rest.elevenlabs/Runtime/Common/GeneratedClip.cs Refactored audio clip caching and creation logic to support non-streaming clips.
ElevenLabs/Packages/com.rest.elevenlabs/Samples~/TextToSpeech/TextToSpeechDemo.cs Added elapsed time measurement to adjust playback delay and enhanced debug logging.
ElevenLabs/Packages/com.rest.elevenlabs/Tests/Test_Fixture_04_TextToSpeechEndpoint.cs Added assertions comparing audio clip length with reported length to improve test coverage.
ElevenLabs/Packages/com.rest.elevenlabs/Runtime/Dubbing/DubbingEndpoint.cs Updated delay calls to use Awaiters.DelayAsync for WebGL compatibility.
ElevenLabs/Packages/com.rest.elevenlabs/Runtime/TextToSpeech/TextToSpeechEndpoint.cs Fixed the sample rate argument by using a precomputed frequency variable.

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

@StephenHodgson StephenHodgson enabled auto-merge (squash) March 8, 2025 23:45
@StephenHodgson StephenHodgson merged commit 5b1e657 into main Mar 8, 2025
16 checks passed
@StephenHodgson StephenHodgson deleted the development branch March 8, 2025 23:48
github-actions bot pushed a commit that referenced this pull request Mar 8, 2025
- Fixed generated clip playback for non-streaming clips
- Updated usages of Task.Delay with WebGL friendly Awaiters.DelayAsync
- Updated TextToSpeechDemo
- Updated Deps
- Updated Unit Tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Audio Glitch in Demo Scene Reported crash when accessing VoiceClip.AudioClip w/non stream
1 participant